import request from '@/utils/request'

// 查询专业信息列表
export function specialityList(query) {
  return request({
    url: '/basic/speciality/list',
    method: 'get',
    params: query
  })
}
// 根据院系获取专业下拉树
export function getSpecialityByDeptId(query) { 
  return request({
    url: '/basic/speciality/getSpecialityByDeptId',
    method: 'get',
    params: query
  })
}
// 新增专业信息
export function speciality(data) {
  return request({
    url: '/basic/speciality',
    method: 'post',
    data: data
  })
}
// 修改专业信息
export function updataSpeciality(data) {
  return request({
    url: '/basic/speciality',
    method: 'put',
    data: data
  })
}
// 获取专业信息详情
export function specialityInfor(data) {
  return request({
    url: '/basic/speciality/' + data,
    method: 'get',

  })
}
// 删除专业信息
export function delSpeciality(data) {
  return request({
    url: '/basic/speciality/' + data,
    method: 'delete',

  })
}